package restaurant.core;

public class Meal {
	private long price;
	private String name;
	private Portata portata;
	private MealType type;
	
	public Meal() {
		this.price = 0;
		this.name = "";
	}
	
	public Meal(String name, long price, Portata portata, MealType type) {
		this.price = price;
		this.name = name;
		this.portata = portata;
		this.type = type;
	}
	
	public String getName() {
		return name;
	}
	
	public long getPrice() {
		return price;
	}
	
	public Portata getPortata() {
		return portata;
	}
	
	public MealType getMealType() {
		return type;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public void setPrice(long price) {
		this.price = price;
	}
	
	public void setPortata(Portata portata) {
		this.portata = portata;
	}
	
	public void setType(MealType type) {
		this.type = type;
	}
	
	@Override
	public String toString() {
		return this.portata + " " + this.type + " " + this.name + " " + this.price;
	}
}